Source.fromMap constructor
Implementation
Source.fromMap(Map<String, Object?> obj)
: adapterData = obj['adapterData'],
checksums = (obj['checksums'] as List?)
?.map((item) => Checksum.fromJson(item as Map<String, Object?>))
.toList(),
name = obj['name'] as String?,
origin = obj['origin'] as String?,
path = obj['path'] as String?,
presentationHint = obj['presentationHint'] as String?,
sourceReference = obj['sourceReference'] as int?,
sources = (obj['sources'] as List?)
?.map((item) => Source.fromJson(item as Map<String, Object?>))
.toList();