Form.fromJson constructor

Form.fromJson(
  1. Map json_
)

Implementation

Form.fromJson(core.Map json_)
    : this(
        formId: json_.containsKey('formId')
            ? json_['formId'] as core.String
            : null,
        info: json_.containsKey('info')
            ? Info.fromJson(
                json_['info'] as core.Map<core.String, core.dynamic>)
            : null,
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) => Item.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        linkedSheetId: json_.containsKey('linkedSheetId')
            ? json_['linkedSheetId'] as core.String
            : null,
        responderUri: json_.containsKey('responderUri')
            ? json_['responderUri'] as core.String
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        settings: json_.containsKey('settings')
            ? FormSettings.fromJson(
                json_['settings'] as core.Map<core.String, core.dynamic>)
            : null,
      );