fromJson static method

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

Implementation

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

  return ChatTypePrivate(userId: (json['user_id'] as int?) ?? 0);
}