Input$PriceCreditInput.fromJson constructor
Input$PriceCreditInput.fromJson(
- Map<String, dynamic> data
)
Implementation
factory Input$PriceCreditInput.fromJson(Map<String, dynamic> data) {
final result$data = <String, dynamic>{};
if (data.containsKey('amount')) {
final l$amount = data['amount'];
result$data['amount'] = (l$amount as String?);
}
if (data.containsKey('periodValue')) {
final l$periodValue = data['periodValue'];
result$data['periodValue'] = (l$periodValue as int?);
}
if (data.containsKey('periodCycle')) {
final l$periodCycle = data['periodCycle'];
result$data['periodCycle'] = l$periodCycle == null
? null
: fromJson$Enum$RecurrenceType((l$periodCycle as String));
}
return Input$PriceCreditInput._(result$data);
}