ListInventoryEntriesResult.fromJson constructor

ListInventoryEntriesResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListInventoryEntriesResult.fromJson(Map<String, dynamic> json) {
  return ListInventoryEntriesResult(
    captureTime: json['CaptureTime'] as String?,
    entries: (json['Entries'] as List?)
        ?.whereNotNull()
        .map((e) => (e as Map<String, dynamic>)
            .map((k, e) => MapEntry(k, e as String)))
        .toList(),
    instanceId: json['InstanceId'] as String?,
    nextToken: json['NextToken'] as String?,
    schemaVersion: json['SchemaVersion'] as String?,
    typeName: json['TypeName'] as String?,
  );
}