VMessAccount.fromJson constructor

VMessAccount.fromJson(
  1. Object? json
)

Implementation

factory VMessAccount.fromJson(Object? json) {
  final map = asJsonMap(json, 'vmess account');
  return VMessAccount(
    id: map['id'] as String,
    security: map['security'] == null
        ? null
        : VmessSecurity.fromJson(map['security']),
    experiments: map['experiments'] as String?,
  );
}