UserSettingsConfig.fromJson constructor

UserSettingsConfig.fromJson(
  1. Map<String, dynamic> jsonSerialization,
  2. SerializationManager serializationManager
)

Implementation

factory UserSettingsConfig.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return UserSettingsConfig(
    canSeeUserName: serializationManager
        .deserialize<bool>(jsonSerialization['canSeeUserName']),
    canSeeFullName: serializationManager
        .deserialize<bool>(jsonSerialization['canSeeFullName']),
    canEditUserName: serializationManager
        .deserialize<bool>(jsonSerialization['canEditUserName']),
    canEditFullName: serializationManager
        .deserialize<bool>(jsonSerialization['canEditFullName']),
    canEditUserImage: serializationManager
        .deserialize<bool>(jsonSerialization['canEditUserImage']),
  );
}