fromJson static method
Implementation
static PaymentForm? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PaymentForm(
id: int.tryParse((json['id'] as dynamic)?.toString() ?? '') ?? 0,
type: PaymentFormType.fromJson(tdMapFromJson(json['type'])),
sellerBotUserId: (json['seller_bot_user_id'] as int?) ?? 0,
productInfo: ProductInfo.fromJson(tdMapFromJson(json['product_info'])),
);
}