toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (version.isNotDefault) 'version': version,
  if (launchStage.isNotDefault) 'launchStage': launchStage.toJson(),
  if (restNumericEnums.isNotDefault) 'restNumericEnums': restNumericEnums,
  if (javaSettings != null) 'javaSettings': javaSettings!.toJson(),
  if (cppSettings != null) 'cppSettings': cppSettings!.toJson(),
  if (phpSettings != null) 'phpSettings': phpSettings!.toJson(),
  if (pythonSettings != null) 'pythonSettings': pythonSettings!.toJson(),
  if (nodeSettings != null) 'nodeSettings': nodeSettings!.toJson(),
  if (dotnetSettings != null) 'dotnetSettings': dotnetSettings!.toJson(),
  if (rubySettings != null) 'rubySettings': rubySettings!.toJson(),
  if (goSettings != null) 'goSettings': goSettings!.toJson(),
};