toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, Object?>{
      'parameterType': parameterType?.toJson(),
      'fixed': fixed ?? false,
      if (name case final nameValue?) 'name': nameValue,
      if (required case final requiredValue?) 'required': requiredValue,
    };