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,
);