ErrorEntity.fromJson constructor
ErrorEntity.fromJson(
- dynamic data
Implementation
ErrorEntity.fromJson(data) {
Map<String, dynamic> json =
data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
if (json['code'] != null) code = json['code'];
if (json['error'] != null) error = json['error'];
}