ListRecordsResponse.fromJson constructor
ListRecordsResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ListRecordsResponse.fromJson(Map<String, dynamic> json) {
return ListRecordsResponse(
count: json['Count'] as int?,
datasetDeletedAfterRequestedSyncCount:
json['DatasetDeletedAfterRequestedSyncCount'] as bool?,
datasetExists: json['DatasetExists'] as bool?,
datasetSyncCount: json['DatasetSyncCount'] as int?,
lastModifiedBy: json['LastModifiedBy'] as String?,
mergedDatasetNames: (json['MergedDatasetNames'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
nextToken: json['NextToken'] as String?,
records: (json['Records'] as List?)
?.whereNotNull()
.map((e) => Record.fromJson(e as Map<String, dynamic>))
.toList(),
syncSessionToken: json['SyncSessionToken'] as String?,
);
}