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,
      );