Converts this LastUsedMethod into a JSON map.
LastUsedMethod
Map<String, dynamic> toJson() { return { 'id': id, 'type': type?.toJsonValue, }; }