Map<String, dynamic> toJson() => {"identifier": identifier} ..removeWhere((dynamic key, dynamic value) => key == null || value == null);