toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = this.id;
  json[r'token'] = this.token;
  json[r'balenaId'] = this.balenaId;
  json[r'apiKey'] = this.apiKey;
  if (this.supportedGateway != null) {
    json[r'supportedGateways'] = this.supportedGateway;
  } else {
    json[r'supportedGateways'] = null;
  }
  if (this.orgId != null) {
    json[r'orgId'] = this.orgId;
  } else {
    json[r'orgId'] = null;
  }
  if (this.appId != null) {
    json[r'appId'] = this.appId;
  } else {
    json[r'appId'] = null;
  }
  if (this.available != null) {
    json[r'available'] = this.available;
  } else {
    json[r'available'] = null;
  }
  if (this.gateway != null) {
    json[r'gateway'] = this.gateway;
  } else {
    json[r'gateway'] = null;
  }
  return json;
}