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