toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'user_id'] = this.userId;
    json[r'key'] = this.key;
  if (this.newKey != null) {
    json[r'new_key'] = this.newKey;
  } else {
    json[r'new_key'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.lmsUrl != null) {
    json[r'lms_url'] = this.lmsUrl;
  } else {
    json[r'lms_url'] = null;
  }
  if (this.cmsUrl != null) {
    json[r'cms_url'] = this.cmsUrl;
  } else {
    json[r'cms_url'] = null;
  }
  if (this.portalUrl != null) {
    json[r'portal_url'] = this.portalUrl;
  } else {
    json[r'portal_url'] = null;
  }
  return json;
}