yoomoney_flutter/lib/models/host_parameters.dart

31 lines
681 B
Dart
Raw Permalink Normal View History

2022-07-03 20:52:22 +03:00
class HostParameters {
String host;
String paymentAuthorizationHost;
String authHost;
String configHost;
HostParameters(
this.host,
this.paymentAuthorizationHost,
this.authHost,
this.configHost,
);
Map<String, dynamic> toJson() =>
{
'apiHost': host,
'paymentAuthApiHost': paymentAuthorizationHost,
'authApiHost': authHost,
'configHost': configHost
};
factory HostParameters.fromJson(Map<String, dynamic> json) {
return HostParameters(
json['apiHost'] as String,
json['paymentAuthApiHost'] as String,
json['authApiHost'] as String,
json['configHost'] as String,
);
}
}