CommitResponse.fromJson constructor

CommitResponse.fromJson(
  1. Map json_
)

Implementation

CommitResponse.fromJson(core.Map json_)
    : this(
        commitTime: json_.containsKey('commitTime')
            ? json_['commitTime'] as core.String
            : null,
        indexUpdates: json_.containsKey('indexUpdates')
            ? json_['indexUpdates'] as core.int
            : null,
        mutationResults: json_.containsKey('mutationResults')
            ? (json_['mutationResults'] as core.List)
                .map((value) => MutationResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );