fromJson static method

ResultShape fromJson(
  1. Map<String, Object?> json
)

Implementation

static ResultShape fromJson(Map<String, Object?> json) =>
    ResultShape(json['type']! as String, [
      for (var field in (json['fields'] as List? ?? const []))
        ResultField.fromJson((field as Map).cast<String, Object?>()),
    ], gates: json['gates'] as bool? ?? false);