RegisterCustomerResult.fromJson constructor

RegisterCustomerResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RegisterCustomerResult.fromJson(Map<String, dynamic> json) {
  return RegisterCustomerResult(
    success: json['success'] as bool,
    customer: json['customer'] != null
        ? CustomerInfo.fromJson(json['customer'] as Map<String, dynamic>)
        : null,
    message: json['message'] as String?,
  );
}