CustomMetric.fromJson constructor
CustomMetric.fromJson(
- Map json_
Implementation
CustomMetric.fromJson(core.Map json_)
: this(
accountId: json_.containsKey('accountId')
? json_['accountId'] as core.String
: null,
active:
json_.containsKey('active') ? json_['active'] as core.bool : null,
created: json_.containsKey('created')
? core.DateTime.parse(json_['created'] as core.String)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
index: json_.containsKey('index') ? json_['index'] as core.int : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
maxValue: json_.containsKey('max_value')
? json_['max_value'] as core.String
: null,
minValue: json_.containsKey('min_value')
? json_['min_value'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
parentLink: json_.containsKey('parentLink')
? CustomMetricParentLink.fromJson(
json_['parentLink'] as core.Map<core.String, core.dynamic>)
: null,
scope:
json_.containsKey('scope') ? json_['scope'] 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,
webPropertyId: json_.containsKey('webPropertyId')
? json_['webPropertyId'] as core.String
: null,
);