toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (deleteTime != null) 'deleteTime': deleteTime!,
      if (iconUri != null) 'iconUri': iconUri!,
      if (latestVersion != null) 'latestVersion': latestVersion!,
      if (latestVersionCreateTime != null)
        'latestVersionCreateTime': latestVersionCreateTime!,
      if (name != null) 'name': name!,
      if (publisher != null) 'publisher': publisher!,
      if (ref != null) 'ref': ref!,
      if (registryLaunchStage != null)
        'registryLaunchStage': registryLaunchStage!,
      if (state != null) 'state': state!,
      if (visibility != null) 'visibility': visibility!,
    };