68 lines
1.7 KiB
Dart
68 lines
1.7 KiB
Dart
//
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
//
|
|
// @dart=2.18
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
part of openapi.api;
|
|
|
|
class SendNotificationRequest {
|
|
SendNotificationRequest({
|
|
this.title,
|
|
this.body,
|
|
});
|
|
|
|
String? title;
|
|
String? body;
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
other is SendNotificationRequest &&
|
|
other.title == title &&
|
|
other.body == body;
|
|
|
|
@override
|
|
int get hashCode =>
|
|
(title == null ? 0 : title!.hashCode) +
|
|
(body == null ? 0 : body!.hashCode);
|
|
|
|
@override
|
|
String toString() => 'SendNotificationRequest[title=$title, body=$body]';
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final json = <String, dynamic>{};
|
|
json[r'title'] = title;
|
|
json[r'body'] = body;
|
|
return json;
|
|
}
|
|
|
|
static SendNotificationRequest? fromJson(dynamic value) {
|
|
if (value is Map) {
|
|
final json = value.cast<String, dynamic>();
|
|
return SendNotificationRequest(
|
|
title: mapValueOfType<String>(json, r'title'),
|
|
body: mapValueOfType<String>(json, r'body'),
|
|
);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
static List<SendNotificationRequest> listFromJson(dynamic json, {bool growable = false}) {
|
|
final result = <SendNotificationRequest>[];
|
|
if (json is List && json.isNotEmpty) {
|
|
for (final row in json) {
|
|
final value = SendNotificationRequest.fromJson(row);
|
|
if (value != null) result.add(value);
|
|
}
|
|
}
|
|
return result.toList(growable: growable);
|
|
}
|
|
|
|
static const requiredKeys = <String>{};
|
|
}
|