Definition.fromJson constructor

Definition.fromJson(
  1. Map<String, dynamic> json,
  2. List<Identifier> identifiers,
  3. List<String> uris
)

Implementation

factory Definition.fromJson(
  Map<String, dynamic> json,
  List<Identifier> identifiers,
  List<String> uris,
) {
  final identifier = identifiers[json['id'] as int];
  return Definition(
    identifier: identifier,
    location: Location.fromJson(json['@'] as Map<String, dynamic>, uris),
    loadingUnit: json['loadingUnit'] as String?,
  );
}