Map<String, dynamic> toJson() { final map = <String, dynamic>{}; map['error_code'] = errorCode; map['error_message'] = errorMessage; return map; }