WriteResponse.fromJson constructor

WriteResponse.fromJson(
  1. Map json_
)

Implementation

WriteResponse.fromJson(core.Map json_)
    : this(
        commitTime: json_.containsKey('commitTime')
            ? json_['commitTime'] as core.String
            : null,
        streamId: json_.containsKey('streamId')
            ? json_['streamId'] as core.String
            : null,
        streamToken: json_.containsKey('streamToken')
            ? json_['streamToken'] 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,
      );