fromJson static method

ChatActionBarReportSpam? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static ChatActionBarReportSpam? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ChatActionBarReportSpam(
    canUnarchive: (json['can_unarchive'] as bool?) ?? false,
  );
}