fromJson static method

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

Implementation

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

  return BusinessChatLinks(
    links: List<BusinessChatLink>.from(
      tdListFromJson(json['links'])
          .map((item) => BusinessChatLink.fromJson(tdMapFromJson(item)))
          .whereType<BusinessChatLink>(),
    ),
  );
}