BatchWriteResponse.fromJson constructor

BatchWriteResponse.fromJson(
  1. Map json_
)

Implementation

BatchWriteResponse.fromJson(core.Map json_)
    : this(
        status: json_.containsKey('status')
            ? (json_['status'] as core.List)
                .map((value) => Status.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        writeResults: json_.containsKey('writeResults')
            ? (json_['writeResults'] as core.List)
                .map((value) => WriteResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );