ScLoanError.fromMap constructor

ScLoanError.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ScLoanError.fromMap(Map<String, dynamic> map) {
  return ScLoanError(
    code: map['code']?.toInt() ?? -1,
    message: map['message'] ?? 'n/a',
    data: map['data'],
  );
}