codigo actual del servidor, con avances de joan
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final bkashBeginResponse = bkashBeginResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
BkashBeginResponse bkashBeginResponseFromJson(String str) => BkashBeginResponse.fromJson(json.decode(str));
|
||||
|
||||
String bkashBeginResponseToJson(BkashBeginResponse data) => json.encode(data.toJson());
|
||||
|
||||
class BkashBeginResponse {
|
||||
BkashBeginResponse({
|
||||
this.token,
|
||||
this.result,
|
||||
this.url,
|
||||
this.message,
|
||||
});
|
||||
|
||||
String? token;
|
||||
bool? result;
|
||||
String? url;
|
||||
String? message;
|
||||
|
||||
factory BkashBeginResponse.fromJson(Map<String, dynamic> json) => BkashBeginResponse(
|
||||
token: json["token"],
|
||||
result: json["result"],
|
||||
url: json["url"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"token": token,
|
||||
"result": result,
|
||||
"url": url,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final bkashPaymentProcessResponse = bkashPaymentProcessResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
BkashPaymentProcessResponse bkashPaymentProcessResponseFromJson(String str) => BkashPaymentProcessResponse.fromJson(json.decode(str));
|
||||
|
||||
String bkashPaymentProcessResponseToJson(BkashPaymentProcessResponse data) => json.encode(data.toJson());
|
||||
|
||||
class BkashPaymentProcessResponse {
|
||||
BkashPaymentProcessResponse({
|
||||
this.result,
|
||||
this.message,
|
||||
});
|
||||
|
||||
bool? result;
|
||||
String? message;
|
||||
|
||||
factory BkashPaymentProcessResponse.fromJson(Map<String, dynamic> json) => BkashPaymentProcessResponse(
|
||||
result: json["result"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"result": result,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final flutterwaveUrlResponse = flutterwaveUrlResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
FlutterwaveUrlResponse flutterwaveUrlResponseFromJson(String str) => FlutterwaveUrlResponse.fromJson(json.decode(str));
|
||||
|
||||
String flutterwaveUrlResponseToJson(FlutterwaveUrlResponse data) => json.encode(data.toJson());
|
||||
|
||||
class FlutterwaveUrlResponse {
|
||||
FlutterwaveUrlResponse({
|
||||
this.result,
|
||||
this.url,
|
||||
this.message,
|
||||
});
|
||||
|
||||
bool? result;
|
||||
String? url;
|
||||
String? message;
|
||||
|
||||
factory FlutterwaveUrlResponse.fromJson(Map<String, dynamic> json) => FlutterwaveUrlResponse(
|
||||
result: json["result"],
|
||||
url: json["url"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"result": result,
|
||||
"url": url,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final iyzicoPaymentSuccessResponse = iyzicoPaymentSuccessResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
IyzicoPaymentSuccessResponse iyzicoPaymentSuccessResponseFromJson(String str) => IyzicoPaymentSuccessResponse.fromJson(json.decode(str));
|
||||
|
||||
String iyzicoPaymentSuccessResponseToJson(IyzicoPaymentSuccessResponse data) => json.encode(data.toJson());
|
||||
|
||||
class IyzicoPaymentSuccessResponse {
|
||||
IyzicoPaymentSuccessResponse({
|
||||
this.result,
|
||||
this.message,
|
||||
});
|
||||
|
||||
bool? result;
|
||||
String? message;
|
||||
|
||||
factory IyzicoPaymentSuccessResponse.fromJson(Map<String, dynamic> json) => IyzicoPaymentSuccessResponse(
|
||||
result: json["result"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"result": result,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final nagadBeginResponse = nagadBeginResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
NagadBeginResponse nagadBeginResponseFromJson(String str) => NagadBeginResponse.fromJson(json.decode(str));
|
||||
|
||||
String nagadBeginResponseToJson(NagadBeginResponse data) => json.encode(data.toJson());
|
||||
|
||||
class NagadBeginResponse {
|
||||
NagadBeginResponse({
|
||||
this.token,
|
||||
this.result,
|
||||
this.url,
|
||||
this.message,
|
||||
});
|
||||
|
||||
String? token;
|
||||
bool? result;
|
||||
String? url;
|
||||
String? message;
|
||||
|
||||
factory NagadBeginResponse.fromJson(Map<String, dynamic> json) => NagadBeginResponse(
|
||||
token: json["token"],
|
||||
result: json["result"],
|
||||
url: json["url"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"token": token,
|
||||
"result": result,
|
||||
"url": url,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final nagadPaymentProcessResponse = nagadPaymentProcessResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
NagadPaymentProcessResponse nagadPaymentProcessResponseFromJson(String str) => NagadPaymentProcessResponse.fromJson(json.decode(str));
|
||||
|
||||
String nagadPaymentProcessResponseToJson(NagadPaymentProcessResponse data) => json.encode(data.toJson());
|
||||
|
||||
class NagadPaymentProcessResponse {
|
||||
NagadPaymentProcessResponse({
|
||||
this.result,
|
||||
this.message,
|
||||
});
|
||||
|
||||
bool? result;
|
||||
String? message;
|
||||
|
||||
factory NagadPaymentProcessResponse.fromJson(Map<String, dynamic> json) => NagadPaymentProcessResponse(
|
||||
result: json["result"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"result": result,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
33
source_code/lib/data_model/payments/paypal_url_response.dart
Normal file
33
source_code/lib/data_model/payments/paypal_url_response.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final paypalUrlResponse = paypalUrlResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
PaypalUrlResponse paypalUrlResponseFromJson(String str) => PaypalUrlResponse.fromJson(json.decode(str));
|
||||
|
||||
String paypalUrlResponseToJson(PaypalUrlResponse data) => json.encode(data.toJson());
|
||||
|
||||
class PaypalUrlResponse {
|
||||
PaypalUrlResponse({
|
||||
this.result,
|
||||
this.url,
|
||||
this.message,
|
||||
});
|
||||
|
||||
bool? result;
|
||||
String? url;
|
||||
String? message;
|
||||
|
||||
factory PaypalUrlResponse.fromJson(Map<String, dynamic> json) => PaypalUrlResponse(
|
||||
result: json["result"],
|
||||
url: json["url"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"result": result,
|
||||
"url": url,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final paystackPaymentSuccessResponse = paystackPaymentSuccessResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
PaystackPaymentSuccessResponse paystackPaymentSuccessResponseFromJson(String str) => PaystackPaymentSuccessResponse.fromJson(json.decode(str));
|
||||
|
||||
String paystackPaymentSuccessResponseToJson(PaystackPaymentSuccessResponse data) => json.encode(data.toJson());
|
||||
|
||||
class PaystackPaymentSuccessResponse {
|
||||
PaystackPaymentSuccessResponse({
|
||||
this.result,
|
||||
this.message,
|
||||
});
|
||||
|
||||
bool? result;
|
||||
String? message;
|
||||
|
||||
factory PaystackPaymentSuccessResponse.fromJson(Map<String, dynamic> json) => PaystackPaymentSuccessResponse(
|
||||
result: json["result"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"result": result,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final razorpayPaymentSuccessResponse = razorpayPaymentSuccessResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
RazorpayPaymentSuccessResponse razorpayPaymentSuccessResponseFromJson(String str) => RazorpayPaymentSuccessResponse.fromJson(json.decode(str));
|
||||
|
||||
String razorpayPaymentSuccessResponseToJson(RazorpayPaymentSuccessResponse data) => json.encode(data.toJson());
|
||||
|
||||
class RazorpayPaymentSuccessResponse {
|
||||
RazorpayPaymentSuccessResponse({
|
||||
this.result,
|
||||
this.message,
|
||||
});
|
||||
|
||||
bool? result;
|
||||
String? message;
|
||||
|
||||
factory RazorpayPaymentSuccessResponse.fromJson(Map<String, dynamic> json) => RazorpayPaymentSuccessResponse(
|
||||
result: json["result"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"result": result,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final sslcommerzBeginResponse = sslcommerzBeginResponseFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
SslcommerzBeginResponse sslcommerzBeginResponseFromJson(String str) => SslcommerzBeginResponse.fromJson(json.decode(str));
|
||||
|
||||
String sslcommerzBeginResponseToJson(SslcommerzBeginResponse data) => json.encode(data.toJson());
|
||||
|
||||
class SslcommerzBeginResponse {
|
||||
SslcommerzBeginResponse({
|
||||
this.result,
|
||||
this.url,
|
||||
this.message,
|
||||
});
|
||||
|
||||
bool? result;
|
||||
String? url;
|
||||
String? message;
|
||||
|
||||
factory SslcommerzBeginResponse.fromJson(Map<String, dynamic> json) => SslcommerzBeginResponse(
|
||||
result: json["result"],
|
||||
url: json["url"],
|
||||
message: json["message"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"result": result,
|
||||
"url": url,
|
||||
"message": message,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user