Initial commit

This commit is contained in:
2026-01-19 10:20:45 +01:00
commit dd6d0b6e7b
144 changed files with 7016 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
class StaticTalkgroup {
final String? talkgroup;
final String? repeaterId;
final String? slot;
StaticTalkgroup({
this.talkgroup,
this.repeaterId,
this.slot,
});
factory StaticTalkgroup.fromJson(Map<String, dynamic> json) {
return StaticTalkgroup(
talkgroup: json['talkgroup']?.toString(),
repeaterId: json['repeaterId']?.toString(),
slot: json['slot']?.toString(),
);
}
Map<String, dynamic> toJson() {
return {
'talkgroup': talkgroup,
'repeaterId': repeaterId,
'slot': slot,
};
}
String get displaySlot {
return slot != null ? 'TS$slot' : 'TS?';
}
String get displayId {
return talkgroup ?? 'Unknown';
}
}