InventoryResultItem.fromJson constructor

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

Implementation

factory InventoryResultItem.fromJson(Map<String, dynamic> json) {
  return InventoryResultItem(
    content: (json['Content'] as List)
        .whereNotNull()
        .map((e) => (e as Map<String, dynamic>)
            .map((k, e) => MapEntry(k, e as String)))
        .toList(),
    schemaVersion: json['SchemaVersion'] as String,
    typeName: json['TypeName'] as String,
    captureTime: json['CaptureTime'] as String?,
    contentHash: json['ContentHash'] as String?,
  );
}