Sample<Harmonized>.from constructor

Sample<Harmonized>.from(
  1. Map<String, dynamic> json,
  2. Harmonized harmonized
)

General constructor from JSON payload

Implementation

Sample.from(Map<String, dynamic> json, this.harmonized)
    : uuid = json['uuid'],
      identifier = json['identifier'],
      startTimestamp = json['startTimestamp'],
      endTimestamp = json['endTimestamp'],
      device =
          json['device'] != null ? Device.fromJson(json['device']) : null,
      sourceRevision = SourceRevision.fromJson(json['sourceRevision']);