Alert.fromJson constructor
Alert.fromJson(
- Map json_
Implementation
Alert.fromJson(core.Map json_)
: this(
message: json_.containsKey('message')
? json_['message'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
severity: json_.containsKey('severity')
? json_['severity'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);