BatchResponse.fromJson constructor

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

Implementation

factory BatchResponse.fromJson(Map<String, Object?> json) => BatchResponse(
  results: (json['results'] as List<Object?>)
      .map(
        (item) => BatchResult.fromJson((item as Map).cast<String, Object?>()),
      )
      .toList(),
);