Modifications.fromJson constructor
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 = {};
}
}