toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final variantName = this.variantName;
  final desiredInstanceCount = this.desiredInstanceCount;
  final desiredWeight = this.desiredWeight;
  return {
    'VariantName': variantName,
    if (desiredInstanceCount != null)
      'DesiredInstanceCount': desiredInstanceCount,
    if (desiredWeight != null) 'DesiredWeight': desiredWeight,
  };
}