fromJson static method

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

Implementation

static StartLiveStoryResult? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  switch (json['@type']) {
    case StartLiveStoryResultFail.constructor:
      return StartLiveStoryResultFail.fromJson(json);

    case StartLiveStoryResultOk.constructor:
      return StartLiveStoryResultOk.fromJson(json);

    default:
      return null;
  }
}