ServingRestriction.fromJson constructor
ServingRestriction.fromJson(
- Map json_
Implementation
ServingRestriction.fromJson(core.Map json_)
: this(
contexts: json_.containsKey('contexts')
? (json_['contexts'] as core.List)
.map((value) => ServingContext.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
disapproval: json_.containsKey('disapproval')
? Disapproval.fromJson(
json_['disapproval'] as core.Map<core.String, core.dynamic>)
: null,
disapprovalReasons: json_.containsKey('disapprovalReasons')
? (json_['disapprovalReasons'] as core.List)
.map((value) => Disapproval.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
);