Modifications.fromJson constructor

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

Implementation

Modifications.fromJson(Map<String, dynamic> json) {
  // Set type
  type = (json['type'] ?? "") as String;
  // Set the key value map
  try {
    vals = json['value'] as Map<String, dynamic>;
  } catch (e) {
    Flagship.logger(Level.EXCEPTIONS, EXCEPTION.replaceFirst("%s", "$e"));
    vals = {};
  }
}