20 lines
549 B
Dart
20 lines
549 B
Dart
import 'note.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'note_get_response.g.dart';
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
class NoteGetResponseDTO {
|
|
NoteGetResponseDTO(
|
|
{required this.notes, required this.succeeded, required this.message});
|
|
|
|
final List<NoteDTO> notes;
|
|
final bool succeeded;
|
|
final String message;
|
|
|
|
factory NoteGetResponseDTO.fromJson(Map<String, dynamic> json) =>
|
|
_$NoteGetResponseDTOFromJson(json);
|
|
|
|
Map<dynamic, dynamic> toJson() => _$NoteGetResponseDTOToJson(this);
|
|
}
|