Write.fromJson constructor

Write.fromJson(
  1. Map _json
)

Implementation

Write.fromJson(core.Map _json)
    : this(
        currentDocument: _json.containsKey('currentDocument')
            ? Precondition.fromJson(_json['currentDocument']
                as core.Map<core.String, core.dynamic>)
            : null,
        delete: _json.containsKey('delete')
            ? _json['delete'] as core.String
            : null,
        transform: _json.containsKey('transform')
            ? DocumentTransform.fromJson(
                _json['transform'] as core.Map<core.String, core.dynamic>)
            : null,
        update: _json.containsKey('update')
            ? Document.fromJson(
                _json['update'] as core.Map<core.String, core.dynamic>)
            : null,
        updateMask: _json.containsKey('updateMask')
            ? DocumentMask.fromJson(
                _json['updateMask'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTransforms: _json.containsKey('updateTransforms')
            ? (_json['updateTransforms'] as core.List)
                .map((value) => FieldTransform.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );