Account.fromJson constructor
Account.fromJson(
- Map json_
Implementation
Account.fromJson(core.Map json_)
: this(
childLink: json_.containsKey('childLink')
? AccountChildLink.fromJson(
json_['childLink'] as core.Map<core.String, core.dynamic>)
: null,
created: json_.containsKey('created')
? core.DateTime.parse(json_['created'] as core.String)
: 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,
permissions: json_.containsKey('permissions')
? AccountPermissions.fromJson(
json_['permissions'] as core.Map<core.String, core.dynamic>)
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
starred: json_.containsKey('starred')
? json_['starred'] as core.bool
: null,
updated: json_.containsKey('updated')
? core.DateTime.parse(json_['updated'] as core.String)
: null,
);