BatchRequest.fromJson constructor

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

Implementation

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