GetTopicResult.fromMap constructor

GetTopicResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetTopicResult.fromMap(Map<String, dynamic> map) {
  return GetTopicResult(
    arn: (() { final guardedValue = map['arn']; if (guardedValue == null) return null; return guardedValue as String; })(),
    clusterArn: (() { final guardedValue = map['clusterArn']; if (guardedValue == null) return null; return guardedValue as String; })(),
    configs: (() { final guardedValue = map['configs']; if (guardedValue == null) return null; return guardedValue as String; })(),
    name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return guardedValue as String; })(),
    partitionCount: (() { final guardedValue = map['partitionCount']; if (guardedValue == null) return null; return (guardedValue as num).toInt(); })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
    replicationFactor: (() { final guardedValue = map['replicationFactor']; if (guardedValue == null) return null; return (guardedValue as num).toInt(); })(),
  );
}