Correction.fromJson constructor
Correction.fromJson(
- Map _json
Implementation
Correction.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,
details: _json.containsKey('details')
? (_json['details'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
type: _json.containsKey('type') ? _json['type'] as core.String : null,
);