GetSatelliteResponse.fromJson constructor

GetSatelliteResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetSatelliteResponse.fromJson(Map<String, dynamic> json) {
  return GetSatelliteResponse(
    groundStations: (json['groundStations'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    noradSatelliteID: json['noradSatelliteID'] as int?,
    satelliteArn: json['satelliteArn'] as String?,
    satelliteId: json['satelliteId'] as String?,
  );
}