RestartArguments.fromMap constructor

RestartArguments.fromMap(
  1. Map<String, Object?> obj
)

Implementation

RestartArguments.fromMap(Map<String, Object?> obj)
    : arguments = LaunchRequestArguments.canParse(obj['arguments'])
          ? Either2<LaunchRequestArguments, AttachRequestArguments>.t1(
              LaunchRequestArguments.fromJson(
                  obj['arguments'] as Map<String, Object?>))
          : AttachRequestArguments.canParse(obj['arguments'])
              ? Either2<LaunchRequestArguments, AttachRequestArguments>.t2(
                  AttachRequestArguments.fromJson(
                      obj['arguments'] as Map<String, Object?>))
              : null;