toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final instanceRole = this.instanceRole;
  final placementStrategy = this.placementStrategy;
  return {
    'InstanceRole': instanceRole.toValue(),
    if (placementStrategy != null)
      'PlacementStrategy': placementStrategy.toValue(),
  };
}