19 lines
506 B
Dart
19 lines
506 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'note_template.g.dart';
|
|
|
|
@JsonSerializable(fieldRename: FieldRename.snake)
|
|
class NoteTemplateDTO {
|
|
NoteTemplateDTO(
|
|
{required this.language,
|
|
required this.title,
|
|
required this.note});
|
|
|
|
final String note;
|
|
final String language;
|
|
final String title;
|
|
|
|
factory NoteTemplateDTO.fromJson(Map<String, dynamic> json) => _$NoteTemplateDTOFromJson(json);
|
|
Map<dynamic, dynamic> toJson() => _$NoteTemplateDTOToJson(this);
|
|
}
|