ErrorBase.fromJson constructor

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

Implementation

factory ErrorBase.fromJson(Map<String, dynamic> json) {
  final instance = _$ErrorBaseFromJson(json);
  final additionalProperties = Map<String, dynamic>.from(json)
    ..removeWhere((key, value) => _$ErrorBaseFieldMap.containsKey(key));
  return ErrorBase(
    message: instance.message,
    additionalProperties: additionalProperties,
  );
}