initial upload

This commit is contained in:
tom.hempel
2025-10-15 10:53:36 +02:00
commit c15d1d1e49
140 changed files with 6730 additions and 0 deletions

View File

@ -0,0 +1,39 @@
import 'package:json_annotation/json_annotation.dart';
part 'udp_package.g.dart';
@JsonSerializable()
class UdpPackage {
final String id;
final String name;
final String data;
final String ipAddress;
UdpPackage({
required this.id,
required this.name,
required this.data,
required this.ipAddress,
});
factory UdpPackage.fromJson(Map<String, dynamic> json) =>
_$UdpPackageFromJson(json);
Map<String, dynamic> toJson() => _$UdpPackageToJson(this);
UdpPackage copyWith({
String? id,
String? name,
String? data,
String? ipAddress,
}) {
return UdpPackage(
id: id ?? this.id,
name: name ?? this.name,
data: data ?? this.data,
ipAddress: ipAddress ?? this.ipAddress,
);
}
}