Map<String, dynamic> toJson() => <String, Object?>{ 'name': name ?? '', 'valueAsString': valueAsString ?? '', };