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,
        writeResults: _json.containsKey('writeResults')
            ? (_json['writeResults'] as core.List)
                .map((value) => WriteResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );