ShorthandEntry.fromJson constructor

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

Implementation

factory ShorthandEntry.fromJson(Map<String, dynamic> json) {
  return ShorthandEntry(
    name: json['name'] as String,
    value: json['value'] as String,
    important:
        json.containsKey('important') ? json['important'] as bool : null,
  );
}