FieldValue.fromJson constructor

FieldValue.fromJson(
  1. Map json_
)

Implementation

FieldValue.fromJson(core.Map json_)
    : this(
        date: json_.containsKey('date')
            ? Date.fromJson(
                json_['date'] as core.Map<core.String, core.dynamic>)
            : null,
        integer: json_.containsKey('integer')
            ? Integer.fromJson(
                json_['integer'] as core.Map<core.String, core.dynamic>)
            : null,
        selection: json_.containsKey('selection')
            ? Selection.fromJson(
                json_['selection'] as core.Map<core.String, core.dynamic>)
            : null,
        selectionList: json_.containsKey('selectionList')
            ? SelectionList.fromJson(
                json_['selectionList'] as core.Map<core.String, core.dynamic>)
            : null,
        text: json_.containsKey('text')
            ? Text.fromJson(
                json_['text'] as core.Map<core.String, core.dynamic>)
            : null,
        textList: json_.containsKey('textList')
            ? TextList.fromJson(
                json_['textList'] as core.Map<core.String, core.dynamic>)
            : null,
        user: json_.containsKey('user')
            ? SingleUser.fromJson(
                json_['user'] as core.Map<core.String, core.dynamic>)
            : null,
        userList: json_.containsKey('userList')
            ? UserList.fromJson(
                json_['userList'] as core.Map<core.String, core.dynamic>)
            : null,
      );