InstanceReference.fromJson constructor

InstanceReference.fromJson(
  1. Map<String, Object?> json,
  2. List<Constant> constants,
  3. List<Location> locations
)

Implementation

factory InstanceReference.fromJson(
  Map<String, Object?> json,
  List<Constant> constants,
  List<Location> locations,
) {
  return InstanceReference(
    instanceConstant:
        constants[json[_constantKey] as int] as InstanceConstant,
    loadingUnit: json[_loadingUnitKey] as String?,
    location: locations[json[_locationKey] as int],
  );
}