Report.fromJson constructor
Report.fromJson(
- Map json_
Implementation
Report.fromJson(core.Map json_)
: this(
averages: json_.containsKey('averages')
? (json_['averages'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
headers: json_.containsKey('headers')
? (json_['headers'] as core.List)
.map((value) => ReportHeaders.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
rows: json_.containsKey('rows')
? (json_['rows'] as core.List)
.map((value) => (value as core.List)
.map((value) => value as core.String)
.toList())
.toList()
: null,
totalMatchedRows: json_.containsKey('totalMatchedRows')
? json_['totalMatchedRows'] as core.String
: null,
totals: json_.containsKey('totals')
? (json_['totals'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
warnings: json_.containsKey('warnings')
? (json_['warnings'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);