$Subaccount.fromJson constructor Null safety

$Subaccount.fromJson(
  1. Map _json
)

Implementation

$Subaccount.fromJson(core.Map _json)
    : this(
        accountId: _json.containsKey('accountId')
            ? _json['accountId'] as core.String
            : null,
        availablePermissionIds: _json.containsKey('availablePermissionIds')
            ? (_json['availablePermissionIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );