Topic.fromJson constructor

Topic.fromJson(
  1. Map json_
)

Implementation

Topic.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        partitionConfig: json_.containsKey('partitionConfig')
            ? PartitionConfig.fromJson(json_['partitionConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        reservationConfig: json_.containsKey('reservationConfig')
            ? ReservationConfig.fromJson(json_['reservationConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        retentionConfig: json_.containsKey('retentionConfig')
            ? RetentionConfig.fromJson(json_['retentionConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
      );