toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (clientSecret != null) {
    _json[r'client_secret'] = clientSecret;
  }
  if (name != null) {
    _json[r'name'] = name;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  if (iconUrl != null) {
    _json[r'icon_url'] = iconUrl;
  }
  _json[r'callback_urls'] = callbackUrls;
  if (homepage != null) {
    _json[r'homepage'] = homepage;
  }
  if (isTrusted != null) {
    _json[r'is_trusted'] = isTrusted;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (updateAt != null) {
    _json[r'update_at'] = updateAt;
  }
  return _json;
}