Quota.fromJson constructor
Quota.fromJson(
- Map json_
Implementation
Quota.fromJson(core.Map json_)
: this(
limit: json_.containsKey('limit')
? (json_['limit'] as core.num).toDouble()
: null,
metric: json_.containsKey('metric')
? json_['metric'] as core.String
: null,
owner:
json_.containsKey('owner') ? json_['owner'] as core.String : null,
usage: json_.containsKey('usage')
? (json_['usage'] as core.num).toDouble()
: null,
);