ContentMetadataCurrentuserViewed.fromJson constructor

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

Implementation

factory ContentMetadataCurrentuserViewed.fromJson(Map<String, Object?> json) {
  return ContentMetadataCurrentuserViewed(
    lastSeen: DateTime.tryParse(json[r'lastSeen'] as String? ?? ''),
    friendlyLastSeen: json[r'friendlyLastSeen'] as String?,
  );
}