fromJson static method
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);