FieldTransform.fromJson constructor

FieldTransform.fromJson(
  1. Map json_
)

Implementation

FieldTransform.fromJson(core.Map json_)
    : this(
        appendMissingElements: json_.containsKey('appendMissingElements')
            ? ArrayValue.fromJson(json_['appendMissingElements']
                as core.Map<core.String, core.dynamic>)
            : null,
        fieldPath: json_.containsKey('fieldPath')
            ? json_['fieldPath'] as core.String
            : null,
        increment: json_.containsKey('increment')
            ? Value.fromJson(
                json_['increment'] as core.Map<core.String, core.dynamic>)
            : null,
        maximum: json_.containsKey('maximum')
            ? Value.fromJson(
                json_['maximum'] as core.Map<core.String, core.dynamic>)
            : null,
        minimum: json_.containsKey('minimum')
            ? Value.fromJson(
                json_['minimum'] as core.Map<core.String, core.dynamic>)
            : null,
        removeAllFromArray: json_.containsKey('removeAllFromArray')
            ? ArrayValue.fromJson(json_['removeAllFromArray']
                as core.Map<core.String, core.dynamic>)
            : null,
        setToServerValue: json_.containsKey('setToServerValue')
            ? json_['setToServerValue'] as core.String
            : null,
      );