SessionWechatPay.fromJson constructor

SessionWechatPay.fromJson(
  1. Object? json
)

Implementation

factory SessionWechatPay.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionWechatPay(
    appId: map['app_id'] == null ? null : (map['app_id'] as String),
    client: SessionClient.fromJson(map['client']),
  );
}