BatchWriteResponse.fromJson constructor

BatchWriteResponse.fromJson(
  1. Map json_
)

Implementation

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