UserSettings.fromJson constructor

UserSettings.fromJson(
  1. Map parsedJson
)

Implementation

factory UserSettings.fromJson(Map<dynamic, dynamic> parsedJson) {
  return new UserSettings(
      pushNewMessages: parsedJson['pushNewMessages'] ?? true);
}