SourceTypeWechat.fromJson constructor

SourceTypeWechat.fromJson(
  1. Object? json
)

Implementation

factory SourceTypeWechat.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceTypeWechat(
    prepayId: map['prepay_id'] == null ? null : (map['prepay_id'] as String),
    qrCodeUrl:
        map['qr_code_url'] == null ? null : (map['qr_code_url'] as String),
    statementDescriptor: map['statement_descriptor'] == null
        ? null
        : (map['statement_descriptor'] as String),
  );
}