You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
Dart
38 lines
1.1 KiB
Dart
// To parse this JSON data, do
|
|
//
|
|
// final imageResponse = imageResponseFromJson(jsonString);
|
|
|
|
import 'dart:convert';
|
|
|
|
ImageResponse imageResponseFromJson(String str) => ImageResponse.fromJson(json.decode(str));
|
|
|
|
String imageResponseToJson(ImageResponse data) => json.encode(data.toJson());
|
|
|
|
class ImageResponse {
|
|
ImageResponse({
|
|
this.totalItemsCount,
|
|
this.data,
|
|
this.messageStatus,
|
|
this.message,
|
|
});
|
|
|
|
dynamic? totalItemsCount;
|
|
String? data;
|
|
int? messageStatus;
|
|
String? message;
|
|
|
|
factory ImageResponse.fromJson(Map<String, dynamic> json) => ImageResponse(
|
|
totalItemsCount: json["totalItemsCount"],
|
|
data: json["data"] == null ? null : json["data"],
|
|
messageStatus: json["messageStatus"] == null ? null : json["messageStatus"],
|
|
message: json["message"] == null ? null : json["message"],
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
"totalItemsCount": totalItemsCount,
|
|
"data": data == null ? null : data,
|
|
"messageStatus": messageStatus == null ? null : messageStatus,
|
|
"message": message == null ? null : message,
|
|
};
|
|
}
|