PaymentIntentNextActionPixDisplayQrCode.fromJson constructor
PaymentIntentNextActionPixDisplayQrCode.fromJson(
- Object? json
Implementation
factory PaymentIntentNextActionPixDisplayQrCode.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentNextActionPixDisplayQrCode(
data: map['data'] == null ? null : (map['data'] as String),
expiresAt:
map['expires_at'] == null ? null : (map['expires_at'] as num).toInt(),
hostedInstructionsUrl: map['hosted_instructions_url'] == null
? null
: (map['hosted_instructions_url'] as String),
imageUrlPng: map['image_url_png'] == null
? null
: (map['image_url_png'] as String),
imageUrlSvg: map['image_url_svg'] == null
? null
: (map['image_url_svg'] as String),
);
}