migração flutter 2.2.1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class NotificacaoLikeRequest {
|
||||
int iD;
|
||||
String like;
|
||||
int? iD;
|
||||
String? like;
|
||||
|
||||
NotificacaoLikeRequest({this.iD, this.like});
|
||||
|
||||
@@ -18,8 +18,8 @@ class NotificacaoLikeRequest {
|
||||
}
|
||||
|
||||
class NotificacaoLidaRequest {
|
||||
String latitude;
|
||||
String longitude;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
|
||||
NotificacaoLidaRequest({this.latitude, this.longitude});
|
||||
|
||||
@@ -38,9 +38,9 @@ class NotificacaoLidaRequest {
|
||||
|
||||
|
||||
class NotificacaoResponse {
|
||||
NotificacaoResults result;
|
||||
int errorCode;
|
||||
String errorMessage;
|
||||
NotificacaoResults? result;
|
||||
int? errorCode;
|
||||
String? errorMessage;
|
||||
|
||||
NotificacaoResponse({this.result, this.errorCode, this.errorMessage});
|
||||
|
||||
@@ -54,7 +54,7 @@ class NotificacaoResponse {
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
if (this.result != null) {
|
||||
data['Result'] = this.result.toJson();
|
||||
data['Result'] = this.result!.toJson();
|
||||
}
|
||||
data['ErrorCode'] = this.errorCode;
|
||||
data['ErrorMessage'] = this.errorMessage;
|
||||
@@ -63,18 +63,18 @@ class NotificacaoResponse {
|
||||
}
|
||||
|
||||
class NotificacoesResponse {
|
||||
List<NotificacaoResults> results;
|
||||
int errorCode;
|
||||
String errorMessage;
|
||||
bool loadMore;
|
||||
List<NotificacaoResults>? results;
|
||||
int? errorCode;
|
||||
String? errorMessage;
|
||||
bool? loadMore;
|
||||
|
||||
NotificacoesResponse({this.results, this.errorCode, this.errorMessage,this.loadMore});
|
||||
|
||||
NotificacoesResponse.fromJson(Map<String, dynamic> json) {
|
||||
if (json['Results'] != null) {
|
||||
results = new List<NotificacaoResults>();
|
||||
results = <NotificacaoResults>[];
|
||||
json['Results'].forEach((v) {
|
||||
results.add(new NotificacaoResults.fromJson(v));
|
||||
results!.add(new NotificacaoResults.fromJson(v));
|
||||
});
|
||||
}
|
||||
errorCode = json['ErrorCode'];
|
||||
@@ -84,7 +84,7 @@ class NotificacoesResponse {
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
if (this.results != null) {
|
||||
data['Results'] = this.results.map((v) => v.toJson()).toList();
|
||||
data['Results'] = this.results!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
data['ErrorCode'] = this.errorCode;
|
||||
data['ErrorMessage'] = this.errorMessage;
|
||||
@@ -93,15 +93,15 @@ class NotificacoesResponse {
|
||||
}
|
||||
|
||||
class NotificacaoResults {
|
||||
int iD;
|
||||
String titulo;
|
||||
String texto;
|
||||
String conteudo;
|
||||
String dataNotificacao;
|
||||
String tipoConteudo;
|
||||
bool visualizado;
|
||||
String imageUrl;
|
||||
String like;
|
||||
int? iD;
|
||||
String? titulo;
|
||||
String? texto;
|
||||
String? conteudo;
|
||||
String? dataNotificacao;
|
||||
String? tipoConteudo;
|
||||
bool? visualizado;
|
||||
String? imageUrl;
|
||||
String? like;
|
||||
|
||||
NotificacaoResults(
|
||||
{this.iD,
|
||||
|
||||
Reference in New Issue
Block a user