factory ErrorInformation.fromJson(Map<String, dynamic> json) { return ErrorInformation( code: (json['code'] as String?)?.toErrorCode(), message: json['message'] as String?, ); }