ContentStateFailure.fromJson constructor

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

Implementation

factory ContentStateFailure.fromJson(Map<String, Object?> json) {
  return ContentStateFailure(
    contentId: json[r'contentId'] as String? ?? '',
    failureReason: json[r'failureReason'] as String? ?? '',
  );
}