toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountId != null) 'accountId': accountId!,
      if (active != null) 'active': active!,
      if (created != null) 'created': created!.toUtc().toIso8601String(),
      if (id != null) 'id': id!,
      if (index != null) 'index': index!,
      if (kind != null) 'kind': kind!,
      if (maxValue != null) 'max_value': maxValue!,
      if (minValue != null) 'min_value': minValue!,
      if (name != null) 'name': name!,
      if (parentLink != null) 'parentLink': parentLink!,
      if (scope != null) 'scope': scope!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (type != null) 'type': type!,
      if (updated != null) 'updated': updated!.toUtc().toIso8601String(),
      if (webPropertyId != null) 'webPropertyId': webPropertyId!,
    };