toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (name != null) {
    _json[r'name'] = name;
  }
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  if (source_ != null) {
    _json[r'source'] = source_;
  }
  if (remoteId != null) {
    _json[r'remote_id'] = remoteId;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (updateAt != null) {
    _json[r'update_at'] = updateAt;
  }
  if (deleteAt != null) {
    _json[r'delete_at'] = deleteAt;
  }
  if (hasSyncables != null) {
    _json[r'has_syncables'] = hasSyncables;
  }
  return _json;
}