toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (maxInstances != null) 'maxInstances': maxInstances!,
      if (minInstances != null) 'minInstances': minInstances!,
      if (weight != null) 'weight': weight!,
    };