toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.active != null) {
    json[r'active'] = this.active;
  } else {
    json[r'active'] = null;
  }
  if (this.scope != null) {
    json[r'scope'] = this.scope;
  } else {
    json[r'scope'] = null;
  }
  if (this.clientId != null) {
    json[r'client_id'] = this.clientId;
  } else {
    json[r'client_id'] = null;
  }
  if (this.tokenType != null) {
    json[r'token_type'] = this.tokenType;
  } else {
    json[r'token_type'] = null;
  }
  if (this.exp != null) {
    json[r'exp'] = this.exp;
  } else {
    json[r'exp'] = null;
  }
  if (this.iat != null) {
    json[r'iat'] = this.iat;
  } else {
    json[r'iat'] = null;
  }
  if (this.sub != null) {
    json[r'sub'] = this.sub;
  } else {
    json[r'sub'] = null;
  }
  return json;
}