toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (accessId != null) 'accessId': accessId!,
  if (etag != null) 'etag': etag!,
  if (id != null) 'id': id!,
  if (kind != null) 'kind': kind!,
  if (projectId != null) 'projectId': projectId!,
  if (selfLink != null) 'selfLink': selfLink!,
  if (serviceAccountEmail != null)
    'serviceAccountEmail': serviceAccountEmail!,
  if (state != null) 'state': state!,
  if (timeCreated != null)
    'timeCreated': timeCreated!.toUtc().toIso8601String(),
  if (updated != null) 'updated': updated!.toUtc().toIso8601String(),
};