Variable.fromJson constructor

Variable.fromJson(
  1. Map json_
)

Implementation

Variable.fromJson(core.Map json_)
  : this(
      accountId: json_['accountId'] as core.String?,
      containerId: json_['containerId'] as core.String?,
      disablingTriggerId:
          (json_['disablingTriggerId'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      enablingTriggerId:
          (json_['enablingTriggerId'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      fingerprint: json_['fingerprint'] as core.String?,
      formatValue:
          json_.containsKey('formatValue')
              ? VariableFormatValue.fromJson(
                json_['formatValue'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      name: json_['name'] as core.String?,
      notes: json_['notes'] as core.String?,
      parameter:
          (json_['parameter'] as core.List?)
              ?.map(
                (value) => Parameter.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      parentFolderId: json_['parentFolderId'] as core.String?,
      path: json_['path'] as core.String?,
      scheduleEndMs: json_['scheduleEndMs'] as core.String?,
      scheduleStartMs: json_['scheduleStartMs'] as core.String?,
      tagManagerUrl: json_['tagManagerUrl'] as core.String?,
      type: json_['type'] as core.String?,
      variableId: json_['variableId'] as core.String?,
      workspaceId: json_['workspaceId'] as core.String?,
    );