INNER CODE UNIT · Dart

_parseArgumentsJson

Arenukvern/mcp_flutter · mcp_server_dart/bin/flutter_mcp_toolkit.dart:1061

Map<String, Object?> _parseArgumentsJson(final String? value) {
  if (value == null || value.isEmpty) {
    return const <String, Object?>{};
  }

  final decoded = jsonDecode(value);
  if (decoded is Map<String, Object?>) {
    return decoded;
  }
  if (decoded is Map) {
    return decoded.cast<String, Object?>();
  }
  throw const FormatException('Expected JSON object for --args');
}

List<_BatchStep> _parseBatchStepsJson(final String? value) {
  if (value == null || value.isEmpty) {
    throw const FormatException('Expected JSON array for --steps');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…