Source.fromJson constructor
Implementation
factory Source.fromJson(Map<String, dynamic> json) {
return Source(
owner: (json['Owner'] as String).toOwner(),
sourceIdentifier: json['SourceIdentifier'] as String,
sourceDetails: (json['SourceDetails'] as List?)
?.whereNotNull()
.map((e) => SourceDetail.fromJson(e as Map<String, dynamic>))
.toList(),
);
}