Entrypoint.fromJson constructor
Entrypoint.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Entrypoint.fromJson(Map<String, dynamic> json) => Entrypoint(
type_: EntrypointType.fromValue((json['Type'] as num?)?.toInt() ?? 0),
uri: (json['Uri'] as String?) ?? '',
opcodeGroupsFromServer: Opcode.fromValue((json['OpcodeGroupsFromServer'] as num?)?.toInt() ?? 0),
opcodeGroupsToServer: Opcode.fromValue((json['OpcodeGroupsToServer'] as num?)?.toInt() ?? 0),
priority: (json['Priority'] as num?)?.toInt() ?? 0,
description: (json['Description'] as String?) ?? '',
authTicket: json['AuthTicket'],
isUnreliable: (json['IsUnreliable'] as bool?) ?? false,
);