package com.airlock.iam.oauth2.infrastructure.transfer.documentation;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Map;

@Schema(ref = "#/components/schemas/OAuth2ResourceEndpointResponseDataOverride")
public class OAuth2ResourceEndpointResponseData {
   private Map<String, Object> data;

   @JsonAnyGetter
   public Map<String, Object> getData() {
      return this.data;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setData(Map<String, Object> data) {
      this.data = data;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof OAuth2ResourceEndpointResponseData other)) {
         return false;
      } else {
         if (!other.canEqual(this)) {
            return false;
         }

         Object this$data = this.data;
         Object other$data = other.data;
         return this$data == null ? other$data == null : this$data.equals(other$data);
      }
   }

   @SuppressFBWarnings(justification = "generated code")
   protected boolean canEqual(Object other) {
      return other instanceof OAuth2ResourceEndpointResponseData;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $data = this.data;
      return result * 59 + ($data == null ? 43 : $data.hashCode());
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "OAuth2ResourceEndpointResponseData(data=" + this.getData() + ")";
   }
}
