You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
|
|
|
|
part 'server_problem.freezed.dart';
|
|
|
|
part 'server_problem.g.dart';
|
|
|
|
|
|
|
|
@freezed
|
|
|
|
abstract class ServerProblem with _$ServerProblem {
|
|
|
|
const factory ServerProblem({
|
|
|
|
required String id,
|
|
|
|
required String title,
|
|
|
|
required String location,
|
|
|
|
String? censorTaskId,
|
|
|
|
String? rowId,
|
|
|
|
String? bindData,
|
|
|
|
List<String>? imageUrls,
|
|
|
|
required DateTime creationTime,
|
|
|
|
required String creatorId,
|
|
|
|
DateTime? lastModificationTime,
|
|
|
|
String? lastModifierId,
|
|
|
|
}) = _ServerProblem;
|
|
|
|
|
|
|
|
factory ServerProblem.fromJson(Map<String, Object?> json) =>
|
|
|
|
_$ServerProblemFromJson(json);
|
|
|
|
}
|