Map<String, Object?> toJson() { final json = <String, dynamic>{}; json[kType] = type; json.addAll({FileContent.kContent: content}); return json; }