GetRecordsOutput.fromJson constructor
GetRecordsOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetRecordsOutput.fromJson(Map<String, dynamic> json) {
return GetRecordsOutput(
records: (json['Records'] as List)
.whereNotNull()
.map((e) => Record.fromJson(e as Map<String, dynamic>))
.toList(),
childShards: (json['ChildShards'] as List?)
?.whereNotNull()
.map((e) => ChildShard.fromJson(e as Map<String, dynamic>))
.toList(),
millisBehindLatest: json['MillisBehindLatest'] as int?,
nextShardIterator: json['NextShardIterator'] as String?,
);
}