ContentMetadataCurrentuserFavourited.fromJson constructor

ContentMetadataCurrentuserFavourited.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ContentMetadataCurrentuserFavourited.fromJson(
    Map<String, Object?> json) {
  return ContentMetadataCurrentuserFavourited(
    isFavourite: json[r'isFavourite'] as bool? ?? false,
    favouritedDate:
        DateTime.tryParse(json[r'favouritedDate'] as String? ?? ''),
  );
}