NavigateResult.fromJson constructor

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

Implementation

factory NavigateResult.fromJson(Map<String, dynamic> json) {
  return NavigateResult(
    frameId: FrameId.fromJson(json['frameId'] as String),
    loaderId:
        json.containsKey('loaderId')
            ? network.LoaderId.fromJson(json['loaderId'] as String)
            : null,
    errorText:
        json.containsKey('errorText') ? json['errorText'] as String : null,
  );
}