fromJson static method

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

Implementation

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

  return MessageLink(
    link: (json['link'] as String?) ?? '',
    isPublic: (json['is_public'] as bool?) ?? false,
  );
}