fromJson static method
Implementation
static ReportStoryResult? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case ReportStoryResultOk.constructor:
return ReportStoryResultOk.fromJson(json);
case ReportStoryResultOptionRequired.constructor:
return ReportStoryResultOptionRequired.fromJson(json);
case ReportStoryResultTextRequired.constructor:
return ReportStoryResultTextRequired.fromJson(json);
default:
return null;
}
}