CitationSource.fromJson constructor
CitationSource.fromJson(
- Object? j
Implementation
factory CitationSource.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return CitationSource(
startIndex: switch (json['startIndex']) {
null => null,
Object $1 => decodeInt($1),
},
endIndex: switch (json['endIndex']) {
null => null,
Object $1 => decodeInt($1),
},
uri: switch (json['uri']) {
null => null,
Object $1 => decodeString($1),
},
license: switch (json['license']) {
null => null,
Object $1 => decodeString($1),
},
);
}