@override Map<String, dynamic> toJson() => {'type': type, if (usage != null) 'usage': usage!.toJson()};