CreateDistributionResult.fromJson constructor

CreateDistributionResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreateDistributionResult.fromJson(Map<String, dynamic> json) {
  return CreateDistributionResult(
    distribution: json['distribution'] != null
        ? LightsailDistribution.fromJson(
            json['distribution'] as Map<String, dynamic>)
        : null,
    operation: json['operation'] != null
        ? Operation.fromJson(json['operation'] as Map<String, dynamic>)
        : null,
  );
}