Account.fromJson constructor

Account.fromJson(
  1. Map json_
)

Implementation

Account.fromJson(core.Map json_)
    : this(
        approvals: json_.containsKey('approvals')
            ? (json_['approvals'] as core.List)
                .map((value) => Approval.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        inputProperties: json_.containsKey('inputProperties')
            ? json_['inputProperties'] as core.Map<core.String, core.dynamic>
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        provider: json_.containsKey('provider')
            ? json_['provider'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );