SatelliteListItem.fromJson constructor

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

Implementation

factory SatelliteListItem.fromJson(Map<String, dynamic> json) {
  return SatelliteListItem(
    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?,
  );
}