fromJson static method

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

Implementation

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

  return ChatFolderIcon(
    name: (json['name'] as String?) ?? '',
  );
}