Segment.fromJson constructor
Segment.fromJson(
- Map json_
Implementation
Segment.fromJson(core.Map json_)
: this(
created: json_.containsKey('created')
? core.DateTime.parse(json_['created'] as core.String)
: null,
definition: json_.containsKey('definition')
? json_['definition'] 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,
segmentId: json_.containsKey('segmentId')
? json_['segmentId'] as core.String
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
updated: json_.containsKey('updated')
? core.DateTime.parse(json_['updated'] as core.String)
: null,
);